import Vue from "vue";

import asyncModal from "./components/asyncModal/index.vue";

import treegrid from "./components/tree-grid/tree-grid.vue";

import Editor from "./components/editor/index.vue";
import UploadSingle from "./components/upload/Single.vue";
import UoloadMultiple from "./components/upload/Multiple.vue";
import CustomUpload from "./components/upload/Custom.vue";
import pageHead from "./components/main/pageHead.vue";

import TextArea from "@component/text-area";
import Tables from "@component/tables";
import editModal from "@component/tables/editModal.vue";
import FieldItem from "@component/tables/fieldItem.vue";
class Component {
  register() {
    Vue.component("pageHead", pageHead);
    Vue.component("asyncModal", asyncModal);
    Vue.component("Editor", Editor);
    Vue.component("treegrid", treegrid);
    Vue.component("UploadSingle", UploadSingle);
    Vue.component("UoloadMultiple", UoloadMultiple);
    Vue.component("CustomUpload", CustomUpload);
    Vue.component("Tables", Tables);

    Vue.component("TextArea", TextArea);
    Vue.component("editModal", editModal);
    Vue.component("FieldItem", FieldItem);
  }
}

export const component = new Component();
